import { BaseEntity } from '@cool-midway/core';
import { Column, Entity } from 'typeorm';

/**
 * 描述
 */
@Entity('cms_category')
export class CmsCategoryEntity extends BaseEntity {
  @Column({ comment: '分类名称' })
  categoryname: string;

  @Column({ comment: '分类描述', nullable: true })
  description: string;

  @Column({ comment: '分类图标地址', nullable: true })
  categoryicon: string;

  @Column({ comment: '分类显示顺序', nullable: true })
  sort: number;

  @Column({ comment: '该分类下文章数量', nullable: true, default: 0 })
  arttcle_count: number;
}
